<template>
    <div class="container">
        <Category>
            <img slot="bottom" ref="img" src="https://image-blog-lee.oss-cn-hangzhou.aliyuncs.com/uPic/g3sT6R.jpg" alt="">
        </Category>
        <Category>

            <img slot="bottom" ref="img" src="https://image-blog-lee.oss-cn-hangzhou.aliyuncs.com/uPic/OEyPfo.png" alt="">


        </Category>
        <Category slot="bottom">
            <template v-slot:bottom="slotProps">
                <img ref="img" :src="slotProps.slotData" alt="">
            </template>
        </Category>
  </div>
</template>

<script>
import Category from './components/Category.vue'
    export default {
        name: 'App',
        components: {
            Category
        },
        data() {
          return {
            users:[]
          }
      }, 
      methods: {
        
      },
    }
</script>

<!-- 全局样式 -->
<style>
    .container { 
        display: flex;
        justify-content: space-around;
        border: 1px solid rgb(102, 174, 212);
    }
    img {
        width: 100%;
    }
</style>